package arraylist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-12-18
 * Time: 11:35
 */
public class Main {

    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.display();
        myArraylist.add(2,4);
        myArraylist.display();
//        System.out.println(myArraylist.contains(4));
//        System.out.println(myArraylist.indexOf(4));
//        System.out.println(myArraylist.get(2));
        myArraylist.set(1,22);
        myArraylist.display();
    }
}
